home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK2.toast / Development Kits / TEC 1.4 / SampleCode / DropEncoder / Headers / Encoder.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-25  |  1.4 KB  |  53 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************
  2. #
  3. #    Encoder.h
  4. #    
  5. #     The guts of the text encoder sample.  This reads a text file, attempts to determine
  6. #   the encoding, and then converts it to a different encoding.
  7. #
  8. #    Author: Timothy Carroll
  9. #    Apple Developer Technical Support
  10. #    timc@apple.com
  11. #
  12. #    Revision: Jason Yeo
  13. #
  14. #    Modification History: 
  15. #
  16. #    2/9/97        TMC     Initial Release
  17. #
  18. #    9/12/97        JY         Updated for:
  19. #                        TEC 1.2.1 
  20. #                        Universal Interfaces 3.0
  21. #                        CodeWarrior 11 projects
  22. #
  23. #    Copyright © 1997 Apple Computer, Inc., All Rights Reserved
  24. #
  25. #
  26. #    You may incorporate this sample code into your applications without
  27. #    restriction, though the sample code has been provided "AS IS" and the
  28. #    responsibility for its operation is 100% yours.  However, what you are
  29. #    not permitted to do is to redistribute the source as "DSC Sample Code"
  30. #    after having made changes. If you're going to re-distribute the source,
  31. #    we require that you make it clear in the source that the code was
  32. #    descended from Apple Sample Code, but that you've made changes.
  33. #
  34. *************************************************************************************/
  35.  
  36. #ifndef __ENCODER__
  37. #define __ENCODER__
  38.  
  39. #pragma once
  40.  
  41. #include "Shell.h"
  42.  
  43. // These define the parameters for our sniffer
  44. enum
  45. {
  46.     kMaxErrors = 10,
  47.     kMaxFeatures = 100
  48. };
  49.  
  50. OSStatus EncodeFile (FSSpec *theFile);
  51.  
  52.  
  53. #endif // __ENCODER__